package com.million.orderservice.client;


import com.million.commonutils.orderVo.CourseOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: studyboy
 * @Date: 2022/4/9  17:45
 */
@FeignClient(value = "service-edu", fallback = CourseOrderClientFallBack.class)
@Component
public interface CourseOrderClient {

    //根据课程id 获取课程名称和课程封面
    @GetMapping("/eduservice/courseFront/getOrderCourseInfo/{courseId}")
    public CourseOrderVo getOrderCourseInfo (@PathVariable("courseId") String courseId);
}
